﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class ETargetType extends Object
    {
        public var __value:int;
        public static const _ETargetTypeNONE:int = 0;
        public static const _ETargetTypeCombat:int = 1;
        public static const _ETargetTypePlayerLevel:int = 2;
        public static const _ETargetTypeMountRank:int = 3;
        public static const _ETargetTypeWing:int = 4;
        public static const _ETargetTypeFashion:int = 5;
        public static const _ETargetTypePetGrowth:int = 6;
        public static const _ETargetTypeWeaponFashion:int = 7;
        public static const _ETargetTypeFightSoul:int = 8;
        public static const _ETargetTypeLawPosition:int = 9;
        public static const _ETargetTypeDragonSoul:int = 10;
        public static const _ETargetTypeHolyBook:int = 11;
        public static const _ETargetTypeWarShield:int = 12;
        public static const _ETargetTypeBeastSoul:int = 13;
        public static const _ETargetTypeUNKNOWN:int = 99;

        public function ETargetType(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : ETargetType
        {
            return new ETargetType(param1);
        }// end function

        public static function __read(param1:SerializeStream) : ETargetType
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 100)
            {
                throw new MarshalException();
            }
            return ETargetType.convert(_loc_2);
        }// end function

    }
}
